import axios from '../utils/http'

export async function getSpecsList(page,size){
    const res=await axios.get('/api/specslist',{params:{page,size}});
    if(res.code===200){
        return res.list;
    }
    return false;
}

// 规格条数
export async function getSpecsCount(){
    const res=await axios.get('/api/specscount');
    if(res.code===200){
        return res.list[0].total;
    }
    return false;
}